package com.spj.shiro;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.shiro.authc.AuthenticationToken;

/**
 * @author :spj
 * @Date:2022/4/14
 * @description:
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class MyJWT implements AuthenticationToken {
    String token;

    @Override
    public Object getPrincipal() {
        return token;
    }

    @Override
    public Object getCredentials() {
        return token;
    }
}

